<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        table{ border: 1px solid black; border-collapse: collapse;margin:auto;}
        td{
            border: 1px solid #999;
            height: 50px;
            width: 60px;
            text-align: center;
        }
    </style>
</head>
<body>
<table>
    <script>
            function Form(row,sort){
                let str = ""
                for(let i = 0; i < row;i++){
                    str += "<tr>"
                    for(let j = 0;j < sort; j++){
                        str +=`<td>${j*i}</td>`

                    }
                    str += "</tr>"
                }
                return str
            }
            document.write(Form(prompt("多少行"),prompt("多少列")))
            let arr = [1,2,3,4,5,6,4,5]

            console.log(arr.join(","))
    </script>
</table>
<!--    <div style="margin: 50px auto;width: 600px;">-->
<!--        <input type="text" value="" noma="addend">-->
<!--        <input type="text" value="" id="plus" style="width: 20px">-->
<!--        <input type="text" value="" id="sum">-->
<!--        <input type="button" value="=" id="btn">-->
<!--        <input type="text" value="" id="result">-->
<!--    </div>-->
<!--    <script>-->
<!--        let  addend = document.querySelector("input[noma=addend]")-->
<!--        let  sum = document.querySelector("#sum")-->
<!--        // 这个是等于钮-->
<!--        let  btn = document.querySelector("#btn")-->
<!--        let  result = document.querySelector("#result")-->
<!--        let  plus = document.querySelector("#plus")-->
<!--        btn.onclick = ()=>{-->
<!--            if(plus.value === "+"){-->
<!--                result.value = Number(parseFloat(addend.value) + parseFloat(sum.value)).toFixed(1)-->
<!--            }else if(plus.value === "-"){-->
<!--                result.value = parseFloat(addend.value) - parseFloat(sum.value)-->
<!--            }else if(plus.value === "*"){-->
<!--                result.value = parseFloat(addend.value) * parseFloat(sum.value)-->
<!--            }else if(plus.value === "/"){-->
<!--                result.value = parseFloat(addend.value) / parseFloat(sum.value)-->
<!--            }else if(plus.value === "%"){-->
<!--                result.value = parseFloat(addend.value) % parseFloat(sum.value)-->
<!--            }-->
<!--        }-->
<!--    </script>-->

 </body>
</html>